package com.mayi.zds.service.imp;

import com.mayi.zds.dao.MessageDAO;
import com.mayi.zds.entity.Message;
import com.mayi.zds.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName MessageServiceImpl
 * @Author zhong
 * @Date 2019/12/26 15:41:42
 * @Version 1.0
 */
@Service
public class MessageServiceImpl implements MessageService {

    @Autowired
    private MessageDAO messageDAO;

    /**
     * 添加消息记录到数据库
     *
     * @param message
     * @return void
     * @Author zhong
     * @Date 2019/12/26 15:33:30
     **/
    @Override
    public void add(Message message) {
        messageDAO.add(message);
    }
}
